Aug 24, 2023
template_app in settings.pytemplate_app/views.py and define a simple view that passes some data to the template:template_app directory, create a directory named templates.templates directory, create a file named base.html. Use Bootstrap for styling:<!DOCTYPE html>
<html>
<head>
<title>{% block title %}Django Template Demo{% endblock %}</title>
<!-- Add Bootstrap CDN link here -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
</head>
<body>
<div class="container">
{% block content %}
{% endblock %}
</div>
</body>
</html>templates directory, create a file named demo_template.html:template_app/urls.py and define a URL pattern for your view:urls.py (located in the project folder), include the app’s URLs:http://127.0.0.1:8000/template/demo/.Manish Patel